//
//  SEGPublishViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/11.
//

#import <Foundation/Foundation.h>
#import "ReactiveObjC.h"
#import "SEGHelpLabelModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface SEGPublishViewModel : NSObject
/**
 发布状态
 */
@property (nonatomic, assign) SEGPublishStatus status;

/**
 大分类ID
 */
@property (nonatomic, assign) NSUInteger classifyId;

/**
 商品信息
 */
@property (nonatomic, strong) SEGQueryGoodsIdelModel *goodsIdelModel;
/**
 商品ID
 */
@property (nonatomic, copy) NSString *goodsId;

/**
 保存图片的数组
 */
@property (nonatomic, strong)NSMutableArray *savePicArray;

/**
 保存上传图片后的URL数组
 */
@property (nonatomic, strong)NSMutableArray *saveUrlArray;

/**
 是否已上传
 */
@property (nonatomic, assign) BOOL hasSubmit;

/**
 分类ID ，选择的二级分类id
 */
@property (nonatomic, copy) NSString *classId;


/**
 是否已填充信息（编辑时）
 */
@property (nonatomic, assign) BOOL hasFillInfo;



/**
 用于子类修改section个数 默认2
 */
@property (nonatomic, assign)NSInteger sectionCount;

/**
 用于子类修改最大图片数 默认6
 */
@property (nonatomic, assign)NSInteger photoMaxCount;


/**
 租金单位数组租借
 */
@property (nonatomic, strong)NSMutableArray *rentArray;

/**
 求助类型
 */
@property (nonatomic, strong)SEGHelpLabelModel *helpLabelModel;

- (instancetype)initWithStatus:(SEGPublishStatus)status;




/**
 * 提交集市
 * @author Wendy
 * @param dict 参数字典
 */
- (RACSignal *)submitGoodsIdelWithDict:(NSDictionary *)dict;


- (RACSignal *)getUnitData;

- (RACSignal *)submitHelpCardRequestWithContent:(NSString *)content name:(NSString *)name phone:(NSString *)phone;

@end

NS_ASSUME_NONNULL_END
